package com.best.weixin.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.best.core.entity.CommonResult;

/**
 * @ClassName: WeiXinApi
 * @Package: com.best.weixin.api
 * @Description: 微信服务对外开放api接口
 * @Datetime: 2020/6/5 17:46
 * @Author: nike
 */
public interface WeiXinApi {
    @GetMapping("/weixin/feign")
    String testFeign();

    /**
     * 微信服务提供接口 根据手机号码和验证码校验token是否正确
     * 
     * @param phone
     * @param weixinCode
     * @return
     */
    @GetMapping("/weixin/verifyCode")
    CommonResult verifyCode(@RequestParam("phone") String phone,
            @RequestParam("weixinCode") String weixinCode);
}
